Add winget publishing automation#77
Conversation
Add GitHub Actions workflow to automatically publish new releases to winget-pkgs, and add winget install command to the Windows section of the README. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The workflow only uses a custom PAT (WINGET_TOKEN), so the default GITHUB_TOKEN needs no permissions. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Good catch from the security bot! Fixed — added |
|
Hey! I tried to reduce the setup work as much as possible on your end, but the PAT creation and adding the secret to the repo are things that only you as the repo owner can do — there is no way around that unfortunately. I hope the step-by-step instructions in the PR description are clear enough, but let me know if anything is confusing and I will be happy to help! Also, the initial winget manifest PR is already submitted (linked above), so once that gets merged and you set up the token, future releases will be automatically published to winget with zero effort. Really looking forward to being able to just |
|
Just a heads up: the Lint check is failing, but it's a pre-existing issue on |
|
This sounds great! I've been thinking about adding my fork to winget, but I never got around to it because it seemed like a lot of work.
Sorry about that, it should now be fixed. |
|
@guplem You probably know quite a lot more about Winget than I do. Do you know if it supports automatic updates like all other package managers? |
|
Yeah, you're right, winget doesn't have built-in automatic updates. Honestly, to me it's not something that bothers me much, it works like any other package manager where nothing updates until you explicitly ask for it ( That said, if you do want automatic updates, Winget-AutoUpdate is definitely the go-to tool for that. What it does under the hood is basically set up a Windows scheduled task that runs Up to you if you want to mention it in the README |
|
I somehow completely missed |
|
Hey @pol-rivero! Here's a summary of what's still needed and the next steps to get winget updates automatically deployed: What's already done
What you (pol-rivero) need to do after merging
Once those two steps are done, every future release will automatically trigger a PR to Once this is merged and the token is set up, it would be amazing if we could do a quick test release to make sure the whole pipeline works end-to-end. (I'm definitely not saying this just because #76 has some features I'm very eager to get my hands on) |
|
That's great! Thank you for your great work :) I'll try and do a release tonight if I have some time. First, I'd like to test some changes that will probably fix #82. |

Summary
winget installcommand to the Windows section of the READMEHow it works
On each new release (triggered by
releasedevent), the workflow uses winget-releaser to automatically create a PR to microsoft/winget-pkgs with the updated manifest.Setup required
For this automation to work, you need to create a GitHub Personal Access Token (PAT) and add it as a repository secret:
WINGET_TOKEN)public_reposcope (under "repo")WINGET_TOKEN, Value: paste the token from step 6The PAT needs
public_reposcope because the action forksmicrosoft/winget-pkgsand opens PRs on your behalf. The defaultGITHUB_TOKENcannot do this since it only has permissions for this repository.Initial winget submission
The initial manifest PR has already been submitted: microsoft/winget-pkgs#346183
Once merged, users will be able to install via:
🤖 Generated with Claude Code